<template>
  <el-row class="page-tools" align="middle">
    <el-col>
      <div class="before" v-if="text"><i class="el-icon-info" />{{ text }}</div>
    </el-col>
  </el-row>
</template>

<script>
export default {
  name: "PageTools",
  props: {
    text: {
      type: String,
    },
  },
};
</script>

<style lang='scss'>
.page-tools {
  margin: 10px 0;
  .before {
    font-size: 10px;
    line-height: 30px;
    width: 98%;
    i {
      margin-right: 5px;
      color: #909399;
    }
    display: inline-block;
    padding: 0px 10px;
    border-radius: 3px;
    border: 1px solid rgba(244, 244, 245, 1);
    background: rgba(244, 244, 245, 1);
  }
}
</style>